/*
 * @Author: Bo Cai
 * @Mail: caibo0520@qq.com
 * @Date: 2021-12-13 15:47:42
 * @LastEditors: Bo Cai
 * @LastEditTime: 2021-12-13 21:41:32
 */
import request from '@/utils/request'

const api_name = '/statistics-service/daily'
export default {
    createStatistics(day) {
        return request({
            url: `${api_name}/${day}`,
            method: 'post'
        })
    },
    showChart(searchObj) {
        return request({
            url: `${api_name}/show-chart/${searchObj.begin}/${searchObj.end}/${searchObj.type}`,
            method: 'get'
        })
    }
}